<docs>
  <docs-title> 饼图示例一</docs-title>
  <docs-desc>单个配置：data</docs-desc>
 </docs>

<template>
  <chart :options="options"></chart>
</template>

<script>
import chart from "@/echart/pie/pie1.vue";
export default {
  components: {
    chart
  },
  data() {
    return {
      options: null
    };
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {
      this.options = {
        series: [
          {
            data: [
              { value: 40, name: "rose 1" },
              { value: 33, name: "rose 2" },
              { value: 28, name: "rose 3" },
              { value: 22, name: "rose 4" },
              { value: 20, name: "rose 5" },
              { value: 15, name: "rose 6" },
              { value: 12, name: "rose 7" },
              { value: 10, name: "rose 8" }
            ]
          }
        ]
      };
    }
  }
};
</script>
